package com.zhf.dao;

import com.zhf.bean.Grade;

import java.sql.SQLException;

/**
 * @Author: ZhaoHuanfeng
 * @Date: 2020/10/24 17:22
 */
public interface GradeDao {
    /**
     * 创建班级
     * @param grade
     * @return
     */
    public abstract int addGrade(Grade grade) throws SQLException;

    /**
     * 更新班级
     * @param grade
     * @return
     */
    public abstract int updateGrade(Grade grade) throws SQLException;

    /**
     * 删除班级
     * @param gradeName
     * @return
     */
    public abstract int delGrade(String gradeName) throws SQLException;

    /**
     * 查询班级
     * @param gradeName
     * @return
     */
    public abstract Grade getGrade(String gradeName) throws SQLException;
}
